<!-- The view to create/edit a medicine unit -->
  
<br />
<form id="add_med_unit_form" name="add_med_unit_form">
<input type="hidden" id="med_unit_id" name="med_unit_id" value="{$medUnit->get_id()}">
<div class="form_container" style="width: 680px;">
    <div>
        <span id="status_message" style="font-style: italic; color: red;"></span>
    </div>
    <table cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="2" class="field" style="text-transform: uppercase">{translate}Unit detail{/translate}</td>
        </tr>
        <!-- unit_name -->
        <tr>
            <td class="label">{translate}Unit name{/translate}</td>
            <td class="field">
                <input id="unit_name" name="unit_name" type="text" size="65" 
                    value="{$medUnit->get('unit_name')}">
            </td>                                
        </tr>
        
        
    </table>
    
</div>

<div align="right" style="padding-top: 10px; width: 700px;">
    <div id="btn_save">
        <a id="button_save" class="button_link" href="javascript:saveMedicineUnit();">
            {if $medUnit->get_id() > 0}
                {translate}Save{/translate}
            {else}
                {translate}Add new unit{/translate}
            {/if}
        </a>
    </div>
    <div id="barLoading" style="display:none;">
        <img src="{$base_uri}images/ajax-loader.gif"/>
    </div>
</div>
</form>